package com.test.bean;

public class Product {

    private String name;
    private String date;
    private double price;
    private double discount;

    public Product(String name, String date, double price, double discount) {
        this.name = name;
        this.date = date;
        this.price = price;
        this.discount = discount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getDiscount() {
        return discount;
    }

    public void setDiscount(double discount) {
        this.discount = discount;
    }

    @Override
    public String toString() {
        return "Product{" +
                "name='" + name + '\'' +
                ", date='" + date + '\'' +
                ", price=" + price +
                ", discount=" + discount +
                '}';
    }
    // Getters 和 Setters
}
